package team.seekers.oj.codetest.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.oj.common.entity.BaseDO;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(CodeTestDOField.TABLE_NAME)
public class CodeTestListDo extends BaseDO {

    @TableId(value = CodeTestDOField.ID, type = IdType.AUTO)
    private Long codeTestId;

    @TableField(CodeTestDOField.NAME)
    private String codeTestName;

    @TableField(CodeTestDOField.TYPE)
    private Integer type;

    @TableField(CodeTestDOField.USER_ID)
    private Long userId;

    @TableField(CodeTestDOField.PROBLEM_NUM)
    private Integer problemNum;

    @TableField(CodeTestDOField.USER_NUM)
    private Integer userNum;

    @TableField(CodeTestDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = CodeTestDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = CodeTestDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
